@keyframes rotate-frame {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    10% {
        transform: rotateX(0deg) rotateY(180deg);
    }
    20% {
        transform: rotateX(-180deg) rotateY(180deg);
    }
    30% {
        transform: rotateX(-360deg) rotateY(180deg);
    }
    40% {
        transform: rotateX(-360deg) rotateY(360deg);
    }
    50% {
        transform: rotateX(-180deg) rotateY(360deg);
    }
    60% {
        transform: rotateX(90deg) rotateY(180deg);
    }
    70% {
        transform: rotateX(0) rotateY(180deg);
    }
    80% {
        transform: rotateX(90deg) rotateY(90deg);
    }
    90% {
        transform: rotateX(90deg) rotateY(0);
    }
    100% {
        transform: rotateX(0) rotateY(0);
    }
}

.d3_outside_container {
    width: 700px;
    height: 600px;
    margin: 0 auto;
    font-size: 40px;
    position: absolute;
    right: 200px;
    bottom: 200px;
    z-index: 9;
}

.d3_outside_container:hover::before {
    content: attr(title);
    position: absolute;
    top: -50px;
    left: 10px;
    padding: 2px 6px;
    display: inline-block;
    color: #333;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 14px;
}

.d3_outside_container:hover::after {
    content: "";
    border-top: 5px solid #333;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    position: absolute;
    top: -6px;
    left: 60px;
}

.d3_rect-wrap {
    position: relative;
    perspective: 640000px;
}

.d3_container {
    width: 800px;
    height: 800px;
    transform-style: preserve-3d;
    transform-origin: 50% 50% 100px;
    animation: rotate-frame 30s linear infinite;
}

.d3_slide {
    width: 400px;
    height: 400px;
    position: absolute;
    text-align: center;
    line-height: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.9) inset;
    background: pink;
}

.d3_top {
    left: 200px;
    top: -200px;
    background-size: 100%;
    transform: rotateX(-90deg);
    transform-origin: bottom;
    background: url(http://p3.so.qhimgs1.com/bdr/_240_/t01d43f48f760f35a53.gif) no-repeat;
    background-size: 100% 100%;
}

.d3_bottom {
    left: 200px;
    bottom: -200px;
    transform: rotateX(90deg);
    transform-origin: top;
    background: url(http://img.mingxing.com/upload/attach/2017/02-24/305975-6tnXcp.jpg) no-repeat;
    background-size: 100% 100%;
}

.d3_left {
    left: -200px;
    top: 200px;
    transform: rotateY(90deg);
    transform-origin: right;
    background: url(http://img.mingxing.com/upload/attach/2017/02-24/305975-2Rejru.jpg) no-repeat;
    background-size: 100% 100%;
}

.d3_right {
    left: 600px;
    top: 200px;
    transform: rotateY(-90deg);
    transform-origin: left;
    background: url(http://img.mingxing.com/upload/attach/2017/02-24/305975-0ieXkw.jpg) no-repeat;
    background-size: 100% 100%;
}

.d3_front {
    left: 200px;
    top: 200px;
    transform: translateZ(400px);
    background: url(http://img.mingxing.com/upload/attach/2017/02-24/305974-EAKoqx.jpg) no-repeat;
    background-size: 100% 100%;
}

.d3_back {
    left: 200px;
    top: 200px;
    transform: translateZ(0);
    background: url(http://img.mingxing.com/upload/attach/2017/02-24/305975-i9Qcmu.jpg) no-repeat;
    background-size: 100% 100%;
}